package com.candy.control;

import com.candy.bean.DishInfo;
import com.candy.service.GetDishInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
public class GetDishInfoController {
    @Autowired
    GetDishInfoService getDishInfoService;
    @RequestMapping("/getdishinfo")
    List<DishInfo> getDishInfo(DishInfo dishInfo) {
        return getDishInfoService.getDishInfo(dishInfo);
    }
}
